package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: School
 * Description:学校类
 * date: 2020/8/28 0028 9:59:48
 * <p>
 * sid	    int	            主键，自增	学校id
 * name	    varchar(255)	非空	        学校名
 * areaCode	varchar(50)	    外键area表	地区编码
 *
 * @author BaiMo
 * @since JDK 1.8
 */
public class School implements Serializable {
    private int sid;//学校id
    private String name;//学校名
    private Area area;//地区

    public School(int sid, String name, Area area) {
        this.sid = sid;
        this.name = name;
        this.area = area;
    }

    public School() {
    }

    @Override
    public String toString() {
        return "School{" +
                "sid=" + sid +
                ", name='" + name + '\'' +
                ", area=" + area +
                '}';
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }
}
